$character = "/\Q$character\E/" if $character eq '+'; my $stringToProcess = join($SEP_CHAR, split($character, $string));