trim whitespace regex code example Example: regular expression remove spaces trim unnecessary whitespace