Fix server ping when using lines with only spaces