I'm not concerned about the performance, either approach should be pretty fast. I'm mostly hoping that just counting the length might simplify things over joining and splitting a string.