Extract part of filename