Switched from int to size_t for strings