Fix environment variable casting issue.

...tring fails.  Adding String.valueOf(value) to safely get string value without casting issue.