Add helper methods isBencodeString and isBencodeInteger