Check If Object Is String Javascript