remove redundant cast string