how can i check with input if single string is the same as full string?

Maybe post the script? This gives us nothing to work with.