Remove spaces in input string

via regular expression