Fix gripper() to output newline character