only replace * on wildcard searches