perl -MURI::Escape -E ' my $str = "www.abc%20.com"; say $str; $str = URI::Escape::uri_unescape( $str ); say $str; $str =~ s/\s//g; say $str; ' #### www.abc%20.com www.abc .com www.abc.com