Add a decorate method sendall for str type.