https://studentprojectcode.com/blog/how-to-implement-split-function-in-haskell.