Fix str replace to remove info file text.