modify to use NSRegularExpression trim whitespace