Pawn uses null terminated strings which means you must always create your variable 1 size larger than the max you will need. This is why, for example, you will see a variable created at size 32 but the size inputted to the function is 31. The extra cell is reserved for a null character which signifies the end of string. Google null terminated strings for further reading.