Improved preetify(), added duplicate condition