added choice of sentinel character