permission changes and regular expression for number handling