fixed writeln()

small fix but incredibly useful for debugging 
You can specify the number of characters using: `printf("%.*s", s.length, s.ptr);`