added some string manipulation utils