Updated SearchController and StringToPrefix Conversion