Add andEndWith function.