Fixed bug found by John Blair where trim_string wasn't