Position conversion (from and to string) moved into a class, added unit tests.