Trimming uiquery input