Added strong type conversion

Fixed String.split() errors in code by adding strong type conversion