leading/trailing whitespace is now trimmed after stripping characters