Clean tab code