I'm not checking here for .nil? as it shouldn't be required (variable is always created with a value or empty string). If this isn't ok, let me know and I'll change it.