Remove unnecessary string reversal