Fix regexp for function StripTrailingWhitespaces