Class Tester Shared Sub Main() Dim userInput As String userInput = " asdf " Console.WriteLine(Replace(userInput, "f", "")) End SubEnd Class asd