fixed issue (and added test) for numbers where (length % 3 == 0)