trim the value before parsing