Simplified empty string test.
Function to interpret default values.
Also renamed some variables.