add starts_with algorithm function