adding string_replace and updated transpose