rename the method getStringByPath to optStringByPath