Fix for handling of templatize code

Spaces from templatize code messes up the split so a maxsplit value of 1 is used to control
the splitting.