substring in search#buildDOM