Split end/explode into two statements
Merge pull request #2435 from ghost1227/issue/2434

Split end/explode into two statements