param given non letter digit strip strip buffer re buffer length len length len charact letter digit re append charact lower re append re 