Using string funcmtion is way too slow - it might be faster to convert string to byte array and then swap bytes back and forth.
I'm too lazy to start writing anything but suggest trying that approach.