string manipulation example code added