How to read a message from a file, modifying only words?
<p>Suppose I have the following text:</p>

<pre><code>My name   is   myName. I love 
stackoverflow   .   
Hi, Guys!   There is more than one space after "Guys!" 123 
And also after "123" there are 2 spaces and newline.
</code></pre>

<p>Now I need to read this text file as it is. Need to make some actions only with alphanumeric words. And after it I have to print it with changed words but spaces and newlines and punctuations unchanged and on the same position. When changing alphanumeric words length remains same. I have tried this with  library checking for alphanumeric values, but code get very messy. Is there anyother way?</p>
