Convert text to MAC