getstring cleanup