refactoring normalizer string parsing