That was very common during the American Civil War.
Not wanting to actually lie, they would put a piece of paper inside their shoe with the number 17.
When asked by an office, "How old are you." they could truthfully say, I am over 17.
That’s exactly right, mware.