Fixed cross platform issue with string