Add the search formatting function, test passes
Adds string index helper for the specs