Validates text and returns if it matches the need of the user
true if the scanned text is valid
string to check