cue: strip leading and trailing spaces