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.