trim the input
replace href with ng-click to fix url route issue on mobile webpage