function main(state) {
  
  state.text = state.text.trim();
  
}
{
		"api":1,
		"name":"Trim",
		"description":"Trims leading and trailing whitespace.",
		"author":"Joshua Nozzi",
		"icon":"scissors",
		"tags":"trim,whitespace,empty,space",
	}