Small fix to check for empty strings in parser