With statement and some string methods