fixed minor bug in str2str, it worked correctly but terminated with a
segfault after file end. 
added eclipse target for str2str