Can you please put the parenthesis after `basename.substring`, so it applies to the inner call?