YOU SAID:
i havent been able to sleep for a while
INTO JAPANESE
私はしばらくの間眠ることができませんでした
BACK INTO ENGLISH
I couldn't sleep for a while
INTO JAPANESE
しばらく眠れなかった
BACK INTO ENGLISH
I couldn't sleep for a while
That didn't even make that much sense in English.