Test pattern matching allows for empty strings