Fix String.split issue with last element (fix #352)