Adding my solution to 'choices' and 'split' function