for some reason the length came out as one, this did seem abnormal but all i needed to do was take the null terminator off the string (i think)