in reply to Swap the characters
$ perl -le' my $string = "YANDS"; print reverse $string =~ /(.)(.*)(.)/; ' SANDY [download]