Extract the last piece splitting to a separated function.
Merge pull request #1 from calavera/split_last

Extract the last piece splitting to a separated function.