add const to str_addr functions