remove trail colon detect