add capacity for string class