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

or better question either how can i use “get all actor of class” to set a static mesh material?
basically wanna make a reset if string is wrong