changes to trim before converting to integer