add number handling, use replace

added the ability for it to handle numbers, since it's easier to read when passing it in. and implemented differently