a small point: Would not <code>i < parts.length</code> do just as well? Save a couple of bytes :-)