Add option to disable trailing new line char