Fix a syntax error
Fix wrong argument type passing
Refactor strToTrans()

- Use L"" notation
- Don't edit str as it is const, use tmp instead