Added another function and fixed replacenumbers