Adjust substring