Added removeLeadingAndTrailingWhitespace as well as tests for it and the other two removes.