Thanks!
It is actually works like this:
Now I only need to recognize during the time I am parsing the input file if that was L2R or R2L and save it accordingly.
Gabr