Beard is something common in the Arab countries, i don't see a problem in it
But i don't know about the long hair !!, but i think it doesn't matter (Unless you look like a rock star) :O)