preventing names with spaces in them as per #146