Replaced whitespaces with underscores in filenames. Checks whether questions have only whitespace in assigning them as preferred name.