added string manipulation code