added some string management