Unnecessary allocation of string?