replacing spaces for tabs