Find string in a sorted array interspersing with spaces