added method getResourceString