added test for function mutateString