Convert to compile string before writing