Trim input before doing parseInt

Trim input before doing parseInt on it so spaces do not throw exceptions (see I140721_000033 in EasyVista)