Check strings and pass data after validation.