If you're sure this always comes in as a string, your previous check would be okay. Otherwise, this one would exclude anything that isn't a string (like numbers) -- not sure if that's a problem.