State needs to be trimmed to work properly on Windows
The value needs to be converted to unix slashes