Add symbols to string-like patterns