added some char vector functions