Can't chain anything with filename()

Is it possible to chain something to filename() ? I was trying to shorten a filename for display and ->excerpt() or ->short() threw me a php error. So I tried ->value but same php error.

Is filename have a special behaviour ?

Thanks

Edit: excerpt() is a field method, so it can’t be used on a filename.

You could, however, use one of the string methods from the toolkit, or the excerpt() helper.