Help With Specific Event

I’m back once again!

I need with with checking if a textbox’s text is = to something. Some reason even if it is correct, it goes to the else (code below.) Any help appreciated, thanks!

Code:

	game.Workspace.Main.Price.Value = GetPrice
	script.Parent.Item.TextLabel.Text = "Item: ".. GetItem
	script.Parent.Price.TextLabel.Text = "Price: "..GetPrice
	
	script.Parent.Submit.TextButton.MouseButton1Click:Connect(function(player)
		if script.Parent.Input.TextBox.Text == GetPrice then
			game.ReplicatedStorage.Main.AddMoney:FireServer(player)
			script.Parent.Submit.TextButton.Text = "Correct Amount!"
		else
			script.Parent.Submit.TextButton.Text = "You Overcharged Or Undercharged The Customer!"
		end
	end)
end)

Try printing both values before the if like

print(GetPrice)
print(script.Parent.Input.TextBox.Text)
if script.Parent.Input.TextBox.Text == GetPrice then
...

This is to make sure the values are the exact same, and to see if one is nil