Python - just compare
\nclass Solution:\n    def canChange(self, start: str, target: str) -> bool:        \n        N1, N2 = len(start), len(target)        \n        if N1 != N2: ret
```\nclass Solution:\n    def canChange(self, start: str, target: str) -> bool:        \n        N1, N2 = len(start), len(target)        \n        if N1 != N2: return False        \n        if start.replace(\'_\', \'\') != target.replace(\'_\', \'\'):  return False\n        \n        pos1 = []\n        pos2 = []\n                \n        for i in range(N1):\n            if start[i] != \'_\': pos1.append((start[i], i))\n            if target[i] != \'_\': pos2.append((target[i], i))\n                \n        for i in range(len(pos1)):\n            if pos1[i][0] == \'R\' and pos1[i][1] > pos2[i][1]: return False\n            if pos1[i][0] == \'L\' and pos1[i][1] < pos2[i][1]: return False\n                \n        return True\n```
[]