added trim whitespace method