format of string for view