So I tested the following code with a different name than the one I was using originally, which I obviously made sure was spelt correctly about 10 different times, and it worked.... for future reference my account name was something similar to "big slap head". With one space after the first and second word, I'm not sure why it wasn't properly working with an account name that had two spaces like mine but it was working on other accounts. Thanks for the help.
if (getPlayers().closest("name")!=null)
{
getPlayers().closest("name").interact("Trade with");
}