added StripTraillingWhitespaces()