only add additional resource name if string is not empty