str is ignored.