format code from tab to space