Trim strings in waitForOk

Trim some diagnostic strings to prevent stray \r's in the log