Hi Developers , 
In my project there is a page named customer Registration , when customer enters Aadhaar Card No in t text box 
Current - 8693-3764-2252
My Needed Output - XXXX-XX64-2252
Have to save in Database -  8693-3764-2252
 i ma trying with google , if anyone know how to do this task kinldy suggest me to done ... 
Thanking you 
Paul.S