Replace core.stdc.stdio.printf by std.stdio.writeln

Currently std/string.d cannot compile with -debug=string option because it uses `core.stdc.stdio.printf` without importing `core.stdc.stdio`.
This pull request replace `printf` with `writeln` and add import for `std.stdio`.