post: string algorithm