Fixed a huge bug where an array would attempt to access memory not allocated for it if the given strings are vastly different in length.