working on second solution, converted each character of string to ascii number equivalent for manipulation