Serial.available()

typing a number of char, in the serial window, lower than 3,
no replies are obtained.

Think about what you have.
Imagine you start "loop" with three characters in the buffer.
Think about what will happen to Serial.available after you have read out one character.