add dddd ddd dd rules to format, has bug with recursive replacing