Added function to Tools for splitting string into an object

split on the pipe (|) with an optional array to specify the key values