#24: strip added; #19: error message are Foundation-aware