Fixed embarrassing blunder; property key should not be trimmed, but rather the retrieved value.
Also, removed the ugly non-final variable ;P