input: sensors: fromdos and remove trailing whitespace