remove use of 'try'
update 'trim' to 'trimf'