Spaces, newlines and stats error