added some string parsing methods