Add convenience method to trim strings and turn them into ints