Debug messages clarified and moved the escapeQuotes() invocation so the name of the phone looks better in the UI