find a string within a string disregarding spaces in javascript code example Example: js remove spaces str = str.trim();