reorganize imports and create a method to save strings

Signed-off-by: Grarak <williye97@gmail.com>