replace space with characters
set row and col to zero
string check unique chars or not (boolean/array)