add new functions: TrimNewLine and TrimRightWhiteSpace