sequence normalizer and fixer