fix stackDetails impl with file snooping

when source code for file snooping is not found/accessible it throws error because of `.trim()`