I think this should actually be `String ret = new String(msgArr);`/