Fixed label validator

Fixed label validator to check over beginning/end of string rather than the
beginning or end of line.