string match function
updated examples