Properly handle tabs