Combine strings after reserving memory. Accept references to string & vector.

These changes improve icon search performance by around 25%