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

Not sure what that means, but loop waits for no one. DoOnce exists in scope.