When cleaning up strings, it is actually better to use an enum. That way there are no strings and everything is statically typed. Much more reliable. Would you mind converting this to an enum instead?