Check for strlen to allow 0 values in attributes. Closes #3675