Sorry about the title not really making too much sense! I wasn't too sure how to word it ok anyways heres what I mean
local LP = game.Players.LocalPlayer
local target = TextBox.Text
LP.Character.HumanoidRootPart.CFrame = target.CFrame
ok so lets say target text = "bob" but the target players name is Bob how would I make it so LP teleport's still?

2 comments
you would need to use :sub(), idk how to use it myself but i got help with it in one of my scripts
Lowercase the name and check if it matches the text in all lowercase