Update `Valid()` and `String()` methods

Reading through the code for fun, noticed these quick changes. I usually don't have newlines between case statements, but that seems to be the style you use in your code so I stuck with it.