make sure the addr is a string