functions for string editing, tests green