fixed solution 2_5

Added checking for 2048 bytes length