Arduino Mega serial in and serial out to OLED

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?

Take it from where? What should happen to the rest of the characters?