using replace method