Variable pattern matching with Strings