fixed dealing with tabs and multiple spaces