Replaced preg_replace() by str_replace() in Selector