fix menuselect: trim values

Values are now trimmed before they are used in the form

Change-Id: I5a0953cd93254ce80ce23cb521a77858d53f8625