package Ġcom . int ely gen z . android . domains Ċ Ċ import Ġjava . util . regex . Matcher Ċ Ċ internal Ġfun ĠString . remove Non Valid Uri Chars (): ĠString Ġ= Ġreplace ("[ ^ A - Za - z 0 - 9 _ /. ] ". to Regex (), Ġ"") Ċ internal Ġfun ĠString . remove Non Valid Chars (): ĠString Ġ= Ġ Ġreplace ("[ ^ A - Za - z 0 - 9 _] ". to Regex (), Ġ"") Ċ internal Ġfun ĠString . startsWith Number (): ĠBoolean Ġ= Ġfirst (). is Digit () Ċ internal Ġfun ĠString . capitalize (): ĠString Ġ= Ġreplace First Char Ġ{ Ġit . uppercase () Ġ} Ċ internal Ġfun ĠString . de capitalize (): ĠString Ġ= Ġreplace First Char Ġ{ Ġit . lowercase () Ġ} Ċ internal Ġfun ĠMatcher . findAll (): ĠList < String > Ġ{ ĊĠĠĠ Ġval Ġlist Ġ= Ġmutable ListOf < String ?> () ĊĠĠĠ Ġwhile ( find ()) Ġ{ Ġlist . add ( group ( 0 )) Ġ} ĊĠĠĠ Ġreturn Ġlist . map NotNull Ġ{ Ġit Ġ} Ċ }