WIP: Updated method for replacing tab and space characters.