Unique string logic added