string GetString(string name)/ETHEntity

Retrieves the value of a custom string variable from the entity. If there is no string with that name this function will return an empty string.

entity.SetString("name", "Jack");
if (entity.GetString("name") == "Jack")
    print("It works!");