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

or a better overview of it