Unnecessary checking for string in parameters