Updated the filter function to pass arguments

The filter function didn't pass all arguments to fill for placeholders so the spaces remained blank. This fixes the issue.