StringAlter bugfixing and tests