Obama: Mandela changed laws, but also hearts