String Compression Complete

Finished the string compression method. Altered the logic, should work
now.