New line missing in str function