added option to disable spaces or tabs