Mips substring. find the length of the input string.