changes code for replacing tab

changes code for replacing tab