Check language on the first 400 characters of a string instead of 100
Move nil language check up