Laser transmitter transmitts the whole alphabet instead of a single character

There are lots of tutorials on line. You might start with this one: C - Strings