Reverse prefix string