Refactored string_set_range. Added functionality to allow this function to
set a single character. Minor refactoring done to string_replace. Program
suddenly crashes at runtime (not an assertion failure). Currently
unresolved.