A Z3-Based String Constraint Solver