Arduino Mega serial in and serial out to OLED

That was great. Thanks again for the link. What exactly would I do if I wanted to take only the first digit "4" of a number such as "4321" and print only that number?