Removed trim processing to try and work around the ios 7 bug