Changed deprecated trim_chars to trim_matches

trim_chars is deprecated and won't build with default settings. Changed to trim_matches which is a non-deprecated version of trim_chars.
I'm using `rustc 0.13.0-dev (71123902e 2014-12-29 20:19:53 +0000)`