remove spaces from input string, accept lower case letters