UnexpectedTypeException Expected string, given object (Help please!)

I’m trying to take a string property, lets call it test.

string = App.Properties.getValue(“test”);

string.toString(); //(just in case)

I’m then trying to use string.String.find(“insert text here”) on it but it returns expected string got object, what might I be doing wrong?