remove redundant string constructions

remove redundant string constructions