made update in str function