Just hit me now, from a utf-8 document http://closingbraces.net/2008/11/11/javastringtrim/ Anyway, any plans to deprecate trim() and add a new one? I for one would refactor all my projects with it.