Morse Translator Code Error

Ive tested this code but it only works translating 0-9 into morse codes, im using lcd with keypad shield and a buzzer for this code, so when i input text in serial monitor the text will translate into morse code in lcd display. I will upload the code and video when im upload it to arduino UNO
video :

jadi_.ino (5.63 KB)

read [this thread[\url] about how to reliably read serial input.

Also, you should avoid malloc() and arduinos since it will fragement the limited memory and it does not have garbage collection so it will eventually crash.](