Fixed regex in containsSymbol.