 <p>Without looking at any source code, I would guess that one way would be to convert a character to its' respective ASCII value, subtract 32 from it and convert the ASCII value back to a char.</p> <p><img src="https://i.stack.imgur.com/x1xKm.png" alt="enter image description here"></p>