Reposition of characters in interval [K, L]