update return type of stringFromResource