Added some methods to stip characters in regex validation function.