Fix hostname and substr syntax