src: strip whitespace before conversion