added support for {{ some_string[:2] }} (closes #952)