Look into the QV string functions section in the HELP file.
Your two expressions for the new fields might look like
replace(Number,'******','*****') as NewNumber1,
left(Number,len(Number)-4)&right(Number,3) as NewNumber2,
Depending on the format of the Number field, you might also want to look into index(),findoneof() etc.