2013年1月6日 - How about something like this pseudo-codeish: read_input_into_string(); trim_leading_and_trailing_whitespace() ...
stackoverflow.com