I was trying to get whitespace from a string , but .Trim()
does not work, this still displays whitespaces:
var teste = texto.Trim();
txtConteudo.Text = teste;
For example, if it receives: "text text", it continues: "text text" even after passing Trim
. Should not it show "texttext"? How do I get this result?