Ensures replacing the ~ character only at the beginning of the route
setter/getter identity configuration