gives "string" with its first n characters dropped.


gives "string" with its last n characters dropped.


gives "string" with its n^(th) character dropped.


gives "string" with characters m through n dropped.


gives the list of results for each of the s_(i).


  • StringDrop["string",UpTo[n]] removes n characters, or as many as are available.
  • StringDrop["string",{m,n,s}] drops characters m through n in steps of s.
  • StringDrop uses the standard Wolfram Language sequence specification.
  • StringDrop[BioSequence["type","seq"],spec] applies the operation to the string "seq" yielding a BioSequence result.
  • Given a circular BioSequence and a starting position greater than the ending position, i.e. m>n, then StringDrop[bioseq,{m,n}] drops the wrapped-around sequence starting at m and ending at n.


open allclose all

Basic Examples  (3)

Drop the first 4 characters from a string:

Use InputForm to show quotes:

Drop from the end of the string:

Drop characters 5 through 10:

Scope  (7)

Drop character 3 from a string:

Drop every other character:

Drop the last 2 characters from several strings:

StringDrop works with special characters:

Drop the first 4 characters if possible, else as many as are available:

Drop a codon from a bio sequence:

Undertake a wraparound drop on a bio sequence:

Properties & Relations  (3)

Newline (\n) counts as a single character:

StringDrop works like applying Drop to the list of characters:

StringReplacePart with an empty string can be used like StringDrop:

StringReplacePart can drop several sequences of characters at a time:

Possible Issues  (1)

StringDrop operates on the raw characters in a string:

Wolfram Research (1991), StringDrop, Wolfram Language function, (updated 2020).


Wolfram Research (1991), StringDrop, Wolfram Language function, (updated 2020).


@misc{reference.wolfram_2020_stringdrop, author="Wolfram Research", title="{StringDrop}", year="2020", howpublished="\url{}", note=[Accessed: 18-April-2021 ]}


@online{reference.wolfram_2020_stringdrop, organization={Wolfram Research}, title={StringDrop}, year={2020}, url={}, note=[Accessed: 18-April-2021 ]}


Wolfram Language. 1991. "StringDrop." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020.


Wolfram Language. (1991). StringDrop. Wolfram Language & System Documentation Center. Retrieved from