Rename takeWhileEnd