Trim input text.

Issue #139