Fixed bug where there was an UnboundLocaleError because I forgot to just use the last index of the string