added tab/space detection