str into func