• ouch. didn't know about the trailing space removal before length calculation. nice question!