fix bug of match part of src string.