added string parsing