Updated method splitNumbers

Made a units test for  negative numbers,
then updated method splitNumbers to be able to handle negative numbers.