return null, and not "null", if getStringFromAttribute is null