You can do those str_replace() in one single call.