Split string and convert to iteger if num < 9