Cut leading/trailing whitespace from slice value

This change is due to the problem from [1].
Some explanations are added in [2].

[1] https://groups.google.com/forum/#!topic/tiddlywiki/9S8R5Sk2niA
[2] https://groups.google.com/forum/#!topic/tiddlywikidev/Z79VDtuW9Uk