remove newline in printf statement