How about using an enum or at least checking that the argument is valid?