Did the split regexp I suggested not work? It seems to me you're making things a little complicated here.