check both symbol and string