Modified tpattern input to allow for strings (paths) and not just the 'alt-z' parameters