ignore spaces when reading from input nodejs code example Example: remove spaces in a string js str.replace(/\s+/g, '')