string function complete

almost done.