Fixed incorrect letter case dependance for values, fixes #268.
Fixed troubles with spaces in values, fixes #229