test(contains): create test
refactor(truncate): move from collection to string dir
fix(contains): if expression is undefined