I am making a function that has to split an inputted string into 3 parts. The string will be inputted in the following format, Book Title|Year Published|Author . Each part is split using the '|' character, I have to take this string and assign them to three different variables and I am unsure of how to do this. Any help would be greatly appreciated.