enable em space split of search words

change "explode" to "preg_split" so that the search words can be splitted by "space" and "em space".