updated the hostname cleanup pattern