Used split instead of pattern.