General definitions (error msgs & input length)