Fix bug with str.split (code by jsbueno)