tabs to spaces, lsl and rsl functions