fix replace all " " with "-" searchCtrl