change string to str on doc