I want to read a string from a stream, for example “The Beatles”. The problem is that I have a white space at the end “The Beatles “. I want to read it but to eliminate the