Compatibility with Nette 2.2

Yeah, trim and add to both sides.