Use String#split

Used #split instead of recursive integer separation