Use ParseErrors instead of Strings and add a unit test