Working r/w and r/o variables of string type