Checking for empty spaces