How to skip `\r \n ` in string
<p>I am working on a simple converter which converts a text to another language, </p>

<p>suppose i have two textboxes and in 1st box you enter the word <code>Index</code> and press the convert button.<br>
I will replace your text with this <code>فہرست</code> an alternative of <code>Index</code> in urdu language but i have a problem if you enter word <code>index</code> and gives some spaces or gives some returns then i get text of that textbox in c# like this <code>Index         \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n</code> now how can i get rid of this i want to get simple <code>Index</code> always .<br>
Thanks for answer and please feel free to comment if you have any question </p>
