Forum:Is there a command that can do this

For example user put "|type = Episodes" but template must delete last leter and show only "Episode". I can not just delete last letter while filling the template because that letter (usually s) needs to be on another place in template (because of sentence) and I want to use only one variable.

  AW10   Talk    Contribs    E-Mail   


 * You can use either sub or replace string functions.


 * You also need to put your signature in a template, it's very big ;) -- 10:14, April 28, 2011 (UTC)
 * Thank you! I managed to do that with sub
 *   AW10   Talk    Contribs    E-Mail   


 * You can also use #switch in this manner.  Rappy 21:31, May 2, 2011 (UTC)