added wildcard spec and moved truncation $ spec to wildcard