changing substr