Fixed a bug with chomp and search/replace