Rewrite Config with proper spacing